<div class="col-md-10" id="content">
  <div class="panel">
   <div class="panel-heading" style="background-color:#009CC2;color:#fff;">DEKTOP E-LEARNING</div>   
      <div class="panel-body">
       <ul class="nav nav-stacked">
       <?php if($this->session->userdata('is_login')){ ?>
            <?php foreach($materi_desktop as $m): ?>
                <li><a href="<?php echo base_url();?>web/download/<?php echo $m['nama_file'];?>"><?php echo $m['judul'];?> </a></li>
            <?php endforeach;
        ?>
        <?php 
        } else { ?>
            <script>
                var haruslogin = function (){
                    alert("Anda harus login terlebih dahulu!");
                }
            </script>
            <?php foreach($materi_desktop as $m): ?>
                <li><a onClick="haruslogin()" href="#" title="anda harus login" id="must_login"><?php echo $m['judul'];?> </a></li>
            <?php endforeach; ?>
        <?php 
        } ?>
        </ul>
  </div>
 </div>
</div>